﻿<Window x:Class="MoneyManagerNET.Presentation.View.StockInvestmentView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="StockInvestmentView"  Width="502" 
        
        mc:Ignorable="d" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="288" SizeToContent="Height"
        
       
       xmlns:vm="clr-namespace:MoneyManagerNET.Presentation.ViewModel;assembly=MoneyManagerNET.Presentation.ViewModel" 
        
       d:DataContext="{x:Static Member=vm:DesignTimeViewModelSupplier.StockInvestment}"
        
        >


    <StackPanel>
    <GroupBox Header="Stock Investment Details">
    <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120" />
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="120" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Label Content="Held at" />
                <Button x:Name="PromptHeldAt" Grid.Column="1" Content="{Binding HeldAtName}"  Command="{Binding Path=PromptHeldAtCommand}" />
            <Label Content="Stock name" Grid.Row="2"/>
            <TextBox Text="{Binding Name}" Grid.Row="2" Grid.Column="1"/>
            <Label Content="Number of shares" Grid.Row="3"/>
            <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Count}"/>
            <Label Content="Commission" Grid.Row="4"/>
            <TextBox Template="{Binding Commission}" Grid.Row="4" Grid.Column="1"/>


            <Label Content="Date" Grid.Column="2"/>
            <DatePicker Grid.Column="3"/>
            <Label Content="Symbol" Grid.Row="1" Grid.Column="2" />
            <TextBox Text="{Binding Symbol}" Grid.Row="1" Grid.Column="3"/>
            <Label Content="Purchase price" Grid.Row="2" Grid.Column="2"/>
            <TextBox Text="{Binding PurchasePrice}" Grid.Row="2" Grid.Column="3"/>
            <Label Content="Current price" Grid.Row="3" Grid.Column="2"/>
            <TextBox Text="{Binding CurrentPrice}" Grid.Row="3" Grid.Column="3"/>
            <Label Content="Value" Grid.Row="4" Grid.Column="2"/>
            <Label Content="{Binding Cost}" Grid.Row="4" Grid.Column="3"/>
        </Grid>
    </GroupBox>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Ok" Click="Button_Click" />
            <Button Content="Cancel" Click="Click_Cancel" IsCancel="True" />
            <Button Content="Stock price web page"/>
        </StackPanel>
    </StackPanel>
</Window>
